
jvc.loadjs(jvc.baseUrl + "jvc/ui/datetime.files/My97DatePicker/WdatePicker.js" );
jvc.ui.datetime=new jvc_ui_datetime();

function jvc_ui_datetime(){
	this.set=function(tt,obj){		
	new jvcDateTimeView(tt,obj);	
}
}

function jvcDateTimeView(tt,obj){
	this.tt=tt;
	this.obj=obj;		
	tt.className="Wdate";		
	jvc.attachEvent(tt,"click", jvcDateView_onclick(tt,obj));	
}

var jvcDateView_onclick = function(tt,obj)
    {   
        return function(Event)
        {   	   		
       // WdatePicker({skin:'whyGreen',dateFmt:'H:mm:ss'});
       	   var fmt=tt.getAttribute("fmt");
           var dateConfig={};
           if(tt.getAttribute("dateConfig"))eval("var dateConfig={"+tt.getAttribute("dateConfig")+"}");
       	   if(fmt)dateConfig.dateFmt=fmt;
            if(!dateConfig.dateFmt)dateConfig.dateFmt="yyyy-MM-dd HH:mm:ss";       	  
           WdatePicker(dateConfig);         
                      
        }   
    }
    	jvc.init("jvc_ui_datetime_complete()");

 
 function jvc_ui_datetime_complete(){
	//WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'});
	if(!$dp.dd)WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'});
	
	//WdatePicker({skin:'whyGreen',dateFmt:'H:mm:ss'});
    // $dp.hide();
}